import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import App from '@/App.vue';
import router from '@/router';
// 清除浏览器默认样式
import '@/style/reset.scss';
// 顶部全局组件
import HospitalHeader from '@/components/HospitalHeader/index.vue';
// 底部全局组件
import HospitalFooter from '@/components/HospitalFooter/index.vue';

const app = createApp(App);

// 注册全局组件
app.component('HospitalHeader', HospitalHeader);
app.component('HospitalFooter', HospitalFooter);

app.use(router);
app.use(ElementPlus, {
	locale: zhCn,
});

app.mount('#app');
